/*
 * BarriersGetterVisitor.hpp
 *
 *  Created on: 08-01-2011
 *      Author: Przemek
 */

#pragma once

#include "world/ElementsVisitor.hpp"
#include "pch.hpp"

/*
 * Outputs only barriers from elements.
 */
class BarriersGetterVisitor: public ElementsVisitor
{
	private:
		std::vector<Barrier*> barriers;

	public:
		void visit(Barrier& barrier);
		void visit(Individual& individual);
		void visit(MeatSupply& meatSupply);
		void visit(VegetableSupply& vegetableSupply);
		void visit(WaterSupply& waterSupply);

		std::vector<Barrier*> getVector();
};
